package pk.nak.requests;

import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

public abstract class BaseRequest {
	private String url;
	private RequestParams data;
	protected AsyncHttpClient client = new AsyncHttpClient();

	public BaseRequest(String url, RequestParams data) {
		super();
		this.url = url;
		this.data = data;
	}

	protected abstract void doRequest(AsyncHttpResponseHandler responseHandler);
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	public RequestParams getData() {
		return data;
	}

	public void setData(RequestParams data) {
		this.data = data;
	}
	
}
